<h1>Crm tickets List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Numero</th>
      <th>Fecha</th>
      <th>Total</th>
      <th>Cliente</th>
      <th>Personal</th>
      <th>Empresa</th>
      <th>Created at</th>
      <th>Updated at</th>
      <th>Validated at</th>
      <th>Is validated</th>
      <th>Removed at</th>
      <th>Remove it</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($crm_tickets as $crm_ticket): ?>
    <tr>
      <td><a href="<?php echo url_for('ticket/show?id='.$crm_ticket->getId()) ?>"><?php echo $crm_ticket->getId() ?></a></td>
      <td><?php echo $crm_ticket->getNumero() ?></td>
      <td><?php echo $crm_ticket->getFecha() ?></td>
      <td><?php echo $crm_ticket->getTotal() ?></td>
      <td><?php echo $crm_ticket->getClienteId() ?></td>
      <td><?php echo $crm_ticket->getPersonalId() ?></td>
      <td><?php echo $crm_ticket->getEmpresaId() ?></td>
      <td><?php echo $crm_ticket->getCreatedAt() ?></td>
      <td><?php echo $crm_ticket->getUpdatedAt() ?></td>
      <td><?php echo $crm_ticket->getValidatedAt() ?></td>
      <td><?php echo $crm_ticket->getIsValidated() ?></td>
      <td><?php echo $crm_ticket->getRemovedAt() ?></td>
      <td><?php echo $crm_ticket->getRemoveIt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('ticket/new') ?>">New</a>
